package com.example.cdctest.pojo;

import java.io.Serializable;

public class Admin implements Serializable {
    private Integer id;

    /**
	* 管理员账号
	*/
    private String adminAccount;

    /**
	* 密码
	*/
    private String password;

    /**
	* 1为使用，0为删除
	*/
    private Boolean enable;

    /**
	* 0为普通管理员，1为超级管理员
	*/
    private Boolean superAdmin;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAdminAccount() {
        return adminAccount;
    }

    public void setAdminAccount(String adminAccount) {
        this.adminAccount = adminAccount;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public Boolean getSuperAdmin() {
        return superAdmin;
    }

    public void setSuperAdmin(boolean superAdmin) {
        this.superAdmin = superAdmin;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", adminAccount=").append(adminAccount);
        sb.append(", password=").append(password);
        sb.append(", enable=").append(enable);
        sb.append(", superAdmin=").append(superAdmin);
        sb.append("]");
        return sb.toString();
    }
}